//
//  TT_AVPlayer.h
//  goodsDetailBannerDemo
//
//  Created by 王洋 on 2019/7/9.
//  Copyright © 2019 王洋. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <SJVideoPlayer/SJVideoPlayer.h>

NS_ASSUME_NONNULL_BEGIN

@interface TT_AVPlayer : UIView

@property (nonatomic, strong) SJVideoPlayer *txVodPlayer;


@property (nonatomic,strong)   UIButton      *playBtn;//播放按钮

@property (nonatomic, assign)  BOOL          isReadToPlay;//是否准备就绪
@property (nonatomic, assign)  BOOL          isEndPlay;//是否播放完毕

- (void)initPlayerWithUrlString:(NSString *)videoUrl AndMaskUrl:(NSString *)maskUrl;
/*
 * 播放
 */
- (void)play;

/*
 * 停止
 */
- (void)pause;

/*
 * 清空缓存
 */
-(void)clearCache;
@end

NS_ASSUME_NONNULL_END
